-- GENERATED SPELL FOR [Dragonflayer Invader] --


function spell0_24051(pUnit, Event) --@Throw Dragonflayer Harpoon,n/a--
pUnit:FullCastSpellOnTarget(42870,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24051', 850, 1)
end

function Sorts_24051(pUnit, Event)
local choix_sorts_24051 = math.random(0, 0)
if choix_sorts_24051 == 0 then
pUnit:RegisterEvent('spell0_24051', 1, 1)
end
end

function mob24051_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24051', math.random(1500, 3000), 1)
end

function mob24051_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24051_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24051_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24051, 1, 'mob24051_Action')
RegisterUnitEvent(24051, 2, 'mob24051_Leave')
RegisterUnitEvent(24051, 3, 'mob24051_Kill')
RegisterUnitEvent(24051, 4, 'mob24051_Die')
